package com.zlj.accountant.db.entity;

import java.util.Date;
import java.util.UUID;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;

public abstract class TAbstractTable{

	public static final String Field_Id = "id";

	public static final String Field_Creator = "creator";

	public static final String Field_CreateTime = "createTime";

	@DatabaseField(columnName = Field_CreateTime, canBeNull = false)
	private Date createTime;

	@DatabaseField(columnName = Field_Id,id=true,canBeNull=false)
	private UUID id;

	@DatabaseField(columnName = Field_Creator)
	private String creator;

	public UUID getId(){
		return id;
	}

	public void setId(UUID id){
		this.id = id;
	}

	public String getCreator(){
		return creator;
	}

	public void setCreator(String creator){
		this.creator = creator;
	}

	public Date getCreateTime(){
		return createTime;
	}

	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}
	
	public void setCreateTime(Long createTime){
		this.createTime = new Date(createTime);
	}
}
